{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "bbd7628c",
   "metadata": {},
   "source": [
    "# 查看 CUDA 驱动\n",
    "\n",
    "查看 CUDA版本（实际版本还需根据具体情况）\n",
    "- Driver Version: 440.44 （重点）\n",
    "- CUDA Version: 10.2 \n",
    "\n",
    "\n",
    "**CUDA 驱动 案例**\n",
    "\n",
    "```python\n",
    "% nvidia-smi\n",
    "Fri Feb 25 13:54:08 2022       \n",
    "+-----------------------------------------------------------------------------+\n",
    "| NVIDIA-SMI 440.44       Driver Version: 440.44       CUDA Version: 10.2     |\n",
    "|-------------------------------+----------------------+----------------------+\n",
    "| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |\n",
    "| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |\n",
    "|===============================+======================+======================|\n",
    "|   0  GeForce RTX 208...  Off  | 00000000:38:00.0 Off |                  N/A |\n",
    "| 31%   37C    P8     6W / 250W |  10537MiB / 11019MiB |      0%      Default |\n",
    "+-------------------------------+----------------------+----------------------+\n",
    "|   1  GeForce RTX 208...  Off  | 00000000:41:00.0 Off |                  N/A |\n",
    "| 31%   50C    P2    95W / 250W |   1322MiB / 11019MiB |     35%      Default |\n",
    "+-------------------------------+----------------------+----------------------+\n",
    "|   2  GeForce RTX 208...  Off  | 00000000:48:00.0 Off |                  N/A |\n",
    "| 59%   67C    P2   209W / 250W |   3390MiB / 11019MiB |     71%      Default |\n",
    "+-------------------------------+----------------------+----------------------+\n",
    "|   3  GeForce RTX 208...  Off  | 00000000:50:00.0 Off |                  N/A |\n",
    "| 61%   67C    P2   210W / 250W |   3366MiB / 11019MiB |     67%      Default |\n",
    "+-------------------------------+----------------------+----------------------+\n",
    "                                                                               \n",
    "+-----------------------------------------------------------------------------+\n",
    "| Processes:                                                       GPU Memory |\n",
    "|  GPU       PID   Type   Process name                             Usage      |\n",
    "|=============================================================================|\n",
    "|    0     51318      C   /opt/anaconda/envs/test1/bin/python         4487MiB |\n",
    "|    0     53200      C   /opt/anaconda/envs/test1/bin/python         6039MiB |\n",
    "|    1     52472      C   /opt/anaconda/envs/test1/bin/python         1311MiB |\n",
    "|    2     46529      C   /opt/anaconda/envs/test1/bin/python         3379MiB |\n",
    "|    3     46529      C   /opt/anaconda/envs/test1/bin/python         3355MiB |\n",
    "+-----------------------------------------------------------------------------+\n",
    "\n",
    "```\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "e68671ef",
   "metadata": {},
   "source": [
    "# Tensorflow 版本\n",
    "\n",
    "可到Tensorflow官网查看对应版本\n",
    "\n",
    "[Tensorflow 官网](https://tensorflow.google.cn/install/source)\n",
    "\n",
    "\n",
    "## 经过测试的构建配置\n",
    "\n",
    "### Linux\n",
    "\n",
    "\n",
    "**CPU**\n",
    "```python\n",
    "\n",
    "版本\t            Python 版本\t编译器\t构建工具\n",
    "tensorflow-2.6.0\t3.6-3.9\tGCC 7.3.1\tBazel 3.7.2\n",
    "tensorflow-2.5.0\t3.6-3.9\tGCC 7.3.1\tBazel 3.7.2\n",
    "tensorflow-2.4.0\t3.6-3.8\tGCC 7.3.1\tBazel 3.1.0\n",
    "tensorflow-2.3.0\t3.5-3.8\tGCC 7.3.1\tBazel 3.1.0\n",
    "tensorflow-2.2.0\t3.5-3.8\tGCC 7.3.1\tBazel 2.0.0\n",
    "tensorflow-2.1.0\t2.7、3.5-3.7\tGCC 7.3.1\tBazel 0.27.1\n",
    "tensorflow-2.0.0\t2.7、3.3-3.7\tGCC 7.3.1\tBazel 0.26.1\n",
    "tensorflow-1.15.0\t2.7、3.3-3.7\tGCC 7.3.1\tBazel 0.26.1\n",
    "tensorflow-1.14.0\t2.7、3.3-3.7\tGCC 4.8\tBazel 0.24.1\n",
    "tensorflow-1.13.1\t2.7、3.3-3.7\tGCC 4.8\tBazel 0.19.2\n",
    "tensorflow-1.12.0\t2.7、3.3-3.6\tGCC 4.8\tBazel 0.15.0\n",
    "tensorflow-1.11.0\t2.7、3.3-3.6\tGCC 4.8\tBazel 0.15.0\n",
    "tensorflow-1.10.0\t2.7、3.3-3.6\tGCC 4.8\tBazel 0.15.0\n",
    "tensorflow-1.9.0\t2.7、3.3-3.6\tGCC 4.8\tBazel 0.11.0\n",
    "tensorflow-1.8.0\t2.7、3.3-3.6\tGCC 4.8\tBazel 0.10.0\n",
    "tensorflow-1.7.0\t2.7、3.3-3.6\tGCC 4.8\tBazel 0.10.0\n",
    "tensorflow-1.6.0\t2.7、3.3-3.6\tGCC 4.8\tBazel 0.9.0\n",
    "tensorflow-1.5.0\t2.7、3.3-3.6\tGCC 4.8\tBazel 0.8.0\n",
    "tensorflow-1.4.0\t2.7、3.3-3.6\tGCC 4.8\tBazel 0.5.4\n",
    "tensorflow-1.3.0\t2.7、3.3-3.6\tGCC 4.8\tBazel 0.4.5\n",
    "tensorflow-1.2.0\t2.7、3.3-3.6\tGCC 4.8\tBazel 0.4.5\n",
    "tensorflow-1.1.0\t2.7、3.3-3.6\tGCC 4.8\tBazel 0.4.2\n",
    "tensorflow-1.0.0\t2.7、3.3-3.6\tGCC 4.8\tBazel 0.4.2\n",
    "```\n",
    "\n",
    "**GPU**\n",
    "```python\n",
    "版本\tPython 版本\t编译器\t构建工具\tcuDNN\tCUDA\n",
    "tensorflow-2.6.0\t3.6-3.9\tGCC 7.3.1\tBazel 3.7.2\t8.1\t11.2\n",
    "tensorflow-2.5.0\t3.6-3.9\tGCC 7.3.1\tBazel 3.7.2\t8.1\t11.2\n",
    "tensorflow-2.4.0\t3.6-3.8\tGCC 7.3.1\tBazel 3.1.0\t8.0\t11.0\n",
    "tensorflow-2.3.0\t3.5-3.8\tGCC 7.3.1\tBazel 3.1.0\t7.6\t10.1\n",
    "tensorflow-2.2.0\t3.5-3.8\tGCC 7.3.1\tBazel 2.0.0\t7.6\t10.1\n",
    "tensorflow-2.1.0\t2.7、3.5-3.7\tGCC 7.3.1\tBazel 0.27.1\t7.6\t10.1\n",
    "tensorflow-2.0.0\t2.7、3.3-3.7\tGCC 7.3.1\tBazel 0.26.1\t7.4\t10.0\n",
    "tensorflow_gpu-1.15.0\t2.7、3.3-3.7\tGCC 7.3.1\tBazel 0.26.1\t7.4\t10.0\n",
    "tensorflow_gpu-1.14.0\t2.7、3.3-3.7\tGCC 4.8\tBazel 0.24.1\t7.4\t10.0\n",
    "tensorflow_gpu-1.13.1\t2.7、3.3-3.7\tGCC 4.8\tBazel 0.19.2\t7.4\t10.0\n",
    "tensorflow_gpu-1.12.0\t2.7、3.3-3.6\tGCC 4.8\tBazel 0.15.0\t7\t9\n",
    "tensorflow_gpu-1.11.0\t2.7、3.3-3.6\tGCC 4.8\tBazel 0.15.0\t7\t9\n",
    "tensorflow_gpu-1.10.0\t2.7、3.3-3.6\tGCC 4.8\tBazel 0.15.0\t7\t9\n",
    "tensorflow_gpu-1.9.0\t2.7、3.3-3.6\tGCC 4.8\tBazel 0.11.0\t7\t9\n",
    "tensorflow_gpu-1.8.0\t2.7、3.3-3.6\tGCC 4.8\tBazel 0.10.0\t7\t9\n",
    "tensorflow_gpu-1.7.0\t2.7、3.3-3.6\tGCC 4.8\tBazel 0.9.0\t7\t9\n",
    "tensorflow_gpu-1.6.0\t2.7、3.3-3.6\tGCC 4.8\tBazel 0.9.0\t7\t9\n",
    "tensorflow_gpu-1.5.0\t2.7、3.3-3.6\tGCC 4.8\tBazel 0.8.0\t7\t9\n",
    "tensorflow_gpu-1.4.0\t2.7、3.3-3.6\tGCC 4.8\tBazel 0.5.4\t6\t8\n",
    "tensorflow_gpu-1.3.0\t2.7、3.3-3.6\tGCC 4.8\tBazel 0.4.5\t6\t8\n",
    "tensorflow_gpu-1.2.0\t2.7、3.3-3.6\tGCC 4.8\tBazel 0.4.5\t5.1\t8\n",
    "tensorflow_gpu-1.1.0\t2.7、3.3-3.6\tGCC 4.8\tBazel 0.4.2\t5.1\t8\n",
    "tensorflow_gpu-1.0.0\t2.7、3.3-3.6\tGCC 4.8\tBazel 0.4.2\t5.1\t8\n",
    "```\n",
    "\n",
    "\n",
    "### macOS\n",
    "\n",
    "**CPU**\n",
    "```python\n",
    "版本\tPython 版本\t编译器\t构建工具\n",
    "tensorflow-2.6.0\t3.6-3.9\tXcode 10.11 中的 Clang\tBazel 3.7.2\n",
    "tensorflow-2.5.0\t3.6-3.9\tXcode 10.11 中的 Clang\tBazel 3.7.2\n",
    "tensorflow-2.4.0\t3.6-3.8\tXcode 10.3 中的 Clang\tBazel 3.1.0\n",
    "tensorflow-2.3.0\t3.5-3.8\tXcode 10.1 中的 Clang\tBazel 3.1.0\n",
    "tensorflow-2.2.0\t3.5-3.8\tXcode 10.1 中的 Clang\tBazel 2.0.0\n",
    "tensorflow-2.1.0\t2.7、3.5-3.7\tXcode 10.1 中的 Clang\tBazel 0.27.1\n",
    "tensorflow-2.0.0\t2.7、3.5-3.7\tXcode 10.1 中的 Clang\tBazel 0.27.1\n",
    "tensorflow-2.0.0\t2.7、3.3-3.7\tXcode 10.1 中的 Clang\tBazel 0.26.1\n",
    "tensorflow-1.15.0\t2.7、3.3-3.7\tXcode 10.1 中的 Clang\tBazel 0.26.1\n",
    "tensorflow-1.14.0\t2.7、3.3-3.7\tXcode 中的 Clang\tBazel 0.24.1\n",
    "tensorflow-1.13.1\t2.7、3.3-3.7\tXcode 中的 Clang\tBazel 0.19.2\n",
    "tensorflow-1.12.0\t2.7、3.3-3.6\tXcode 中的 Clang\tBazel 0.15.0\n",
    "tensorflow-1.11.0\t2.7、3.3-3.6\tXcode 中的 Clang\tBazel 0.15.0\n",
    "tensorflow-1.10.0\t2.7、3.3-3.6\tXcode 中的 Clang\tBazel 0.15.0\n",
    "tensorflow-1.9.0\t2.7、3.3-3.6\tXcode 中的 Clang\tBazel 0.11.0\n",
    "tensorflow-1.8.0\t2.7、3.3-3.6\tXcode 中的 Clang\tBazel 0.10.1\n",
    "tensorflow-1.7.0\t2.7、3.3-3.6\tXcode 中的 Clang\tBazel 0.10.1\n",
    "tensorflow-1.6.0\t2.7、3.3-3.6\tXcode 中的 Clang\tBazel 0.8.1\n",
    "tensorflow-1.5.0\t2.7、3.3-3.6\tXcode 中的 Clang\tBazel 0.8.1\n",
    "tensorflow-1.4.0\t2.7、3.3-3.6\tXcode 中的 Clang\tBazel 0.5.4\n",
    "tensorflow-1.3.0\t2.7、3.3-3.6\tXcode 中的 Clang\tBazel 0.4.5\n",
    "tensorflow-1.2.0\t2.7、3.3-3.6\tXcode 中的 Clang\tBazel 0.4.5\n",
    "tensorflow-1.1.0\t2.7、3.3-3.6\tXcode 中的 Clang\tBazel 0.4.2\n",
    "tensorflow-1.0.0\t2.7、3.3-3.6\tXcode 中的 Clang\tBazel 0.4.2\n",
    "\n",
    "```\n",
    "\n",
    "**GPU**\n",
    "```python\n",
    "版本\tPython 版本\t编译器\t构建工具\tcuDNN\tCUDA\n",
    "tensorflow_gpu-1.1.0\t2.7、3.3-3.6\tXcode 中的 Clang\tBazel 0.4.2\t5.1\t8\n",
    "tensorflow_gpu-1.0.0\t2.7、3.3-3.6\tXcode 中的 Clang\tBazel 0.4.2\t5.1\t8\n",
    "\n",
    "```\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "cd176937",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "cd188fd2",
   "metadata": {},
   "outputs": [],
   "source": [
    "# TF官网-英文版本介绍\n",
    "\n",
    "[网址](https://tensorflow.google.cn/install/source)\n",
    "\n",
    "**Linux**\n",
    "\n",
    "**CPU**\n",
    "```python\n",
    "Version\tPython version\tCompiler\tBuild tools\n",
    "tensorflow-2.9.0\t3.7-3.10\tGCC 9.3.1\tBazel 5.0.0\n",
    "tensorflow-2.8.0\t3.7-3.10\tGCC 7.3.1\tBazel 4.2.1\n",
    "tensorflow-2.7.0\t3.7-3.9\tGCC 7.3.1\tBazel 3.7.2\n",
    "tensorflow-2.6.0\t3.6-3.9\tGCC 7.3.1\tBazel 3.7.2\n",
    "tensorflow-2.5.0\t3.6-3.9\tGCC 7.3.1\tBazel 3.7.2\n",
    "tensorflow-2.4.0\t3.6-3.8\tGCC 7.3.1\tBazel 3.1.0\n",
    "tensorflow-2.3.0\t3.5-3.8\tGCC 7.3.1\tBazel 3.1.0\n",
    "tensorflow-2.2.0\t3.5-3.8\tGCC 7.3.1\tBazel 2.0.0\n",
    "tensorflow-2.1.0\t2.7, 3.5-3.7\tGCC 7.3.1\tBazel 0.27.1\n",
    "tensorflow-2.0.0\t2.7, 3.3-3.7\tGCC 7.3.1\tBazel 0.26.1\n",
    "tensorflow-1.15.0\t2.7, 3.3-3.7\tGCC 7.3.1\tBazel 0.26.1\n",
    "tensorflow-1.14.0\t2.7, 3.3-3.7\tGCC 4.8\tBazel 0.24.1\n",
    "tensorflow-1.13.1\t2.7, 3.3-3.7\tGCC 4.8\tBazel 0.19.2\n",
    "tensorflow-1.12.0\t2.7, 3.3-3.6\tGCC 4.8\tBazel 0.15.0\n",
    "tensorflow-1.11.0\t2.7, 3.3-3.6\tGCC 4.8\tBazel 0.15.0\n",
    "tensorflow-1.10.0\t2.7, 3.3-3.6\tGCC 4.8\tBazel 0.15.0\n",
    "tensorflow-1.9.0\t2.7, 3.3-3.6\tGCC 4.8\tBazel 0.11.0\n",
    "tensorflow-1.8.0\t2.7, 3.3-3.6\tGCC 4.8\tBazel 0.10.0\n",
    "tensorflow-1.7.0\t2.7, 3.3-3.6\tGCC 4.8\tBazel 0.10.0\n",
    "tensorflow-1.6.0\t2.7, 3.3-3.6\tGCC 4.8\tBazel 0.9.0\n",
    "tensorflow-1.5.0\t2.7, 3.3-3.6\tGCC 4.8\tBazel 0.8.0\n",
    "tensorflow-1.4.0\t2.7, 3.3-3.6\tGCC 4.8\tBazel 0.5.4\n",
    "tensorflow-1.3.0\t2.7, 3.3-3.6\tGCC 4.8\tBazel 0.4.5\n",
    "tensorflow-1.2.0\t2.7, 3.3-3.6\tGCC 4.8\tBazel 0.4.5\n",
    "tensorflow-1.1.0\t2.7, 3.3-3.6\tGCC 4.8\tBazel 0.4.2\n",
    "tensorflow-1.0.0\t2.7, 3.3-3.6\tGCC 4.8\tBazel 0.4.2\n",
    "```\n",
    "\n",
    "**GPU**\n",
    "```python\n",
    "\n",
    "Version\tPython version\tCompiler\tBuild tools\tcuDNN\tCUDA\n",
    "tensorflow-2.9.0\t3.7-3.10\tGCC 9.3.1\tBazel 5.0.0\t8.1\t11.2\n",
    "tensorflow-2.8.0\t3.7-3.10\tGCC 7.3.1\tBazel 4.2.1\t8.1\t11.2\n",
    "tensorflow-2.7.0\t3.7-3.9\tGCC 7.3.1\tBazel 3.7.2\t8.1\t11.2\n",
    "tensorflow-2.6.0\t3.6-3.9\tGCC 7.3.1\tBazel 3.7.2\t8.1\t11.2\n",
    "tensorflow-2.5.0\t3.6-3.9\tGCC 7.3.1\tBazel 3.7.2\t8.1\t11.2\n",
    "tensorflow-2.4.0\t3.6-3.8\tGCC 7.3.1\tBazel 3.1.0\t8.0\t11.0\n",
    "tensorflow-2.3.0\t3.5-3.8\tGCC 7.3.1\tBazel 3.1.0\t7.6\t10.1\n",
    "tensorflow-2.2.0\t3.5-3.8\tGCC 7.3.1\tBazel 2.0.0\t7.6\t10.1\n",
    "tensorflow-2.1.0\t2.7, 3.5-3.7\tGCC 7.3.1\tBazel 0.27.1\t7.6\t10.1\n",
    "tensorflow-2.0.0\t2.7, 3.3-3.7\tGCC 7.3.1\tBazel 0.26.1\t7.4\t10.0\n",
    "tensorflow_gpu-1.15.0\t2.7, 3.3-3.7\tGCC 7.3.1\tBazel 0.26.1\t7.4\t10.0\n",
    "tensorflow_gpu-1.14.0\t2.7, 3.3-3.7\tGCC 4.8\tBazel 0.24.1\t7.4\t10.0\n",
    "tensorflow_gpu-1.13.1\t2.7, 3.3-3.7\tGCC 4.8\tBazel 0.19.2\t7.4\t10.0\n",
    "tensorflow_gpu-1.12.0\t2.7, 3.3-3.6\tGCC 4.8\tBazel 0.15.0\t7\t9\n",
    "tensorflow_gpu-1.11.0\t2.7, 3.3-3.6\tGCC 4.8\tBazel 0.15.0\t7\t9\n",
    "tensorflow_gpu-1.10.0\t2.7, 3.3-3.6\tGCC 4.8\tBazel 0.15.0\t7\t9\n",
    "tensorflow_gpu-1.9.0\t2.7, 3.3-3.6\tGCC 4.8\tBazel 0.11.0\t7\t9\n",
    "tensorflow_gpu-1.8.0\t2.7, 3.3-3.6\tGCC 4.8\tBazel 0.10.0\t7\t9\n",
    "tensorflow_gpu-1.7.0\t2.7, 3.3-3.6\tGCC 4.8\tBazel 0.9.0\t7\t9\n",
    "tensorflow_gpu-1.6.0\t2.7, 3.3-3.6\tGCC 4.8\tBazel 0.9.0\t7\t9\n",
    "tensorflow_gpu-1.5.0\t2.7, 3.3-3.6\tGCC 4.8\tBazel 0.8.0\t7\t9\n",
    "tensorflow_gpu-1.4.0\t2.7, 3.3-3.6\tGCC 4.8\tBazel 0.5.4\t6\t8\n",
    "tensorflow_gpu-1.3.0\t2.7, 3.3-3.6\tGCC 4.8\tBazel 0.4.5\t6\t8\n",
    "tensorflow_gpu-1.2.0\t2.7, 3.3-3.6\tGCC 4.8\tBazel 0.4.5\t5.1\t8\n",
    "tensorflow_gpu-1.1.0\t2.7, 3.3-3.6\tGCC 4.8\tBazel 0.4.2\t5.1\t8\n",
    "tensorflow_gpu-1.0.0\t2.7, 3.3-3.6\tGCC 4.8\tBazel 0.4.2\t5.1\t8\n",
    "\n",
    "```\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "765f1e4f",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "eb576209",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "d0a39074",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "38f18336",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "0f690bdc",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "8a14db44",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "ea9ef89f",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "3978f650",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.13"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
